package com.yz.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yz.entity.Dailylog;
import com.yz.entity.Readroom;
import com.yz.entity.dto.DailylogDto;
import com.yz.mapper.DailylogMapper;
import com.yz.mapper.ReadroomMapper;
import com.yz.service.DailylogService;

/**
 * 日志表实现类
 * @author 于万伟
 *
 */
@Service
public class DailylogServiceImpl implements DailylogService{
	@Autowired
	DailylogMapper dailylogMapper;
	@Autowired
	ReadroomMapper readroomMapper;

	@Override
	public boolean add(Dailylog dailylog) {
		return dailylogMapper.add(dailylog);
	}

	@Override
	public List<Dailylog> getLog(Dailylog dailylogDto) {
		return dailylogMapper.getLog(dailylogDto);
	}

	@Override
	public boolean update(Dailylog dailylog) {
		return dailylogMapper.update(dailylog);
	}

	@Override
	public List<DailylogDto> checkUser(String uid) {
		return dailylogMapper.checkUser(uid);
	}

	@Override
	public List<Readroom> getAllRead() {
		return readroomMapper.getAllRead();
	}
}
